package com.leyou.test1.demo;

public class StringFormatDemo {
    public static void main(String[] args) {

       /* System.out.println(String.format("%04d",99));
        System.out.println(String.format("%f",99.9));
        System.out.println(String.format("%f和%<3.2f",99.45));*/
        System.out.println(String.format("今天天气%s,适合休息","晴朗"));
    }
}
